<template>
  <div class=''>
    <el-button @click="initMenu">获取菜单数据</el-button>
  </div>
</template>

<script>
import API from '@/api/auth'
export default {
  name: 'Auth',
  data () {
    return {

    }
  },
  methods: {
    initMenu () {
      API.initMenu().then(res => {

      }).catch(e => {
        this.$message.error(`error:${e.message}`)
      })
    }
  }
}
</script>
<style lang="less" scoped>
</style>
